import request from "@/utils/request";

// 查询订单项信息列表
export function listOrderItem(query) {
  return request({
    url: "/order/orderItem/list",
    method: "get",
    params: query,
  });
}

// 查询订单项信息详细
export function getOrderItem(id) {
  return request({
    url: "/order/orderItem/" + id,
    method: "get",
  });
}

// 新增订单项信息
export function addOrderItem(data) {
  return request({
    url: "/order/orderItem",
    method: "post",
    data: data,
  });
}

// 修改订单项信息
export function updateOrderItem(data) {
  return request({
    url: "/order/orderItem",
    method: "put",
    data: data,
  });
}

// 删除订单项信息
export function delOrderItem(id) {
  return request({
    url: "/order/orderItem/" + id,
    method: "delete",
  });
}
